import VueRouter from "vue-router";
import Vue from "vue";
Vue.use(VueRouter)

const routes = [
    {path: '/', component: () => import('../view/Index.vue')},
    {path: '/index.html', component: () => import('../view/Index.vue')},
    {path: '/news/first.html', component: () => import('../view/news/First.vue')},
    {path: '/news/second.html', component: () => import('../view/news/Second.vue')},
    {path: '/news/third.html', component: () => import('../view/news/Third.vue')},
    {path: '/index_manual.html', component: () => import('../view/IndexManual.vue')},
    {path: '/main.html', component: () => import('../view/Main.vue')},
    {path: '/index_ahead.html', component: () => import('../view/IndexAhead.vue')},
    {path: '/my_apply.html', component: () => import('../view/MyApply.vue')},
    {path: '/apply_info.html', component: () => import('../view/ApplyInfo.vue')},
    {path: '/info_center.html', component: () => import('../view/InfoCenter.vue')},
    {path: '/index_elementary.html/:schoolGrade/:countiesId', name: 'IndexElementary', component: () => import('../view/IndexElementary.vue')},
    {path: '/index_area.html/:schoolGrade/:countiesId', component: () => import('../view/IndexArea.vue')},
    {path: '/junior_high_register.html', component: () => import('../view/client/JuniorHighRegister.vue')},
    {path: '/primary_registration_info.html/:schoolGrade/:countiesId/:schoolId', component: () => import('../components/PrimaryRegistrationInfo.vue')},
    




    {
        path: '/admin.html',
        component: () => import('../view/Admin.vue'),
        children: [
            { path: '/admin/role.html', component: () => import('../view/admin/Role.vue') },
            { path: '/admin/user.html', component: () => import('../view/admin/User.vue') },
            { path: '/admin/school.html', component: () => import('../view/admin/School.vue') },
            { path: '/admin/junior-high.html', component: () => import('../view/admin/JuniorHighRegister/JuniorHighManage.vue') },

        

        ]
    },



    {path: '*', component: () => import('../view/404.vue')}
]

const router = new VueRouter({
    routes
})

export default router;